package com.cn.dream_order_server.pojo;

import java.util.ArrayList;
import java.util.List;

public class OrderShoppingExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderShoppingExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andShoppingIdIsNull() {
            addCriterion("shopping_id is null");
            return (Criteria) this;
        }

        public Criteria andShoppingIdIsNotNull() {
            addCriterion("shopping_id is not null");
            return (Criteria) this;
        }

        public Criteria andShoppingIdEqualTo(String value) {
            addCriterion("shopping_id =", value, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdNotEqualTo(String value) {
            addCriterion("shopping_id <>", value, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdGreaterThan(String value) {
            addCriterion("shopping_id >", value, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdGreaterThanOrEqualTo(String value) {
            addCriterion("shopping_id >=", value, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdLessThan(String value) {
            addCriterion("shopping_id <", value, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdLessThanOrEqualTo(String value) {
            addCriterion("shopping_id <=", value, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdLike(String value) {
            addCriterion("shopping_id like", value, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdNotLike(String value) {
            addCriterion("shopping_id not like", value, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdIn(List<String> values) {
            addCriterion("shopping_id in", values, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdNotIn(List<String> values) {
            addCriterion("shopping_id not in", values, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdBetween(String value1, String value2) {
            addCriterion("shopping_id between", value1, value2, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andShoppingIdNotBetween(String value1, String value2) {
            addCriterion("shopping_id not between", value1, value2, "shoppingId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(String value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(String value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(String value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(String value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(String value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(String value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLike(String value) {
            addCriterion("user_id like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotLike(String value) {
            addCriterion("user_id not like", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<String> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<String> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(String value1, String value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(String value1, String value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdIsNull() {
            addCriterion("commodity_id is null");
            return (Criteria) this;
        }

        public Criteria andCommodityIdIsNotNull() {
            addCriterion("commodity_id is not null");
            return (Criteria) this;
        }

        public Criteria andCommodityIdEqualTo(String value) {
            addCriterion("commodity_id =", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotEqualTo(String value) {
            addCriterion("commodity_id <>", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdGreaterThan(String value) {
            addCriterion("commodity_id >", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdGreaterThanOrEqualTo(String value) {
            addCriterion("commodity_id >=", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdLessThan(String value) {
            addCriterion("commodity_id <", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdLessThanOrEqualTo(String value) {
            addCriterion("commodity_id <=", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdLike(String value) {
            addCriterion("commodity_id like", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotLike(String value) {
            addCriterion("commodity_id not like", value, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdIn(List<String> values) {
            addCriterion("commodity_id in", values, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotIn(List<String> values) {
            addCriterion("commodity_id not in", values, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdBetween(String value1, String value2) {
            addCriterion("commodity_id between", value1, value2, "commodityId");
            return (Criteria) this;
        }

        public Criteria andCommodityIdNotBetween(String value1, String value2) {
            addCriterion("commodity_id not between", value1, value2, "commodityId");
            return (Criteria) this;
        }

        public Criteria andShoppingNumIsNull() {
            addCriterion("shopping_num is null");
            return (Criteria) this;
        }

        public Criteria andShoppingNumIsNotNull() {
            addCriterion("shopping_num is not null");
            return (Criteria) this;
        }

        public Criteria andShoppingNumEqualTo(Integer value) {
            addCriterion("shopping_num =", value, "shoppingNum");
            return (Criteria) this;
        }

        public Criteria andShoppingNumNotEqualTo(Integer value) {
            addCriterion("shopping_num <>", value, "shoppingNum");
            return (Criteria) this;
        }

        public Criteria andShoppingNumGreaterThan(Integer value) {
            addCriterion("shopping_num >", value, "shoppingNum");
            return (Criteria) this;
        }

        public Criteria andShoppingNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("shopping_num >=", value, "shoppingNum");
            return (Criteria) this;
        }

        public Criteria andShoppingNumLessThan(Integer value) {
            addCriterion("shopping_num <", value, "shoppingNum");
            return (Criteria) this;
        }

        public Criteria andShoppingNumLessThanOrEqualTo(Integer value) {
            addCriterion("shopping_num <=", value, "shoppingNum");
            return (Criteria) this;
        }

        public Criteria andShoppingNumIn(List<Integer> values) {
            addCriterion("shopping_num in", values, "shoppingNum");
            return (Criteria) this;
        }

        public Criteria andShoppingNumNotIn(List<Integer> values) {
            addCriterion("shopping_num not in", values, "shoppingNum");
            return (Criteria) this;
        }

        public Criteria andShoppingNumBetween(Integer value1, Integer value2) {
            addCriterion("shopping_num between", value1, value2, "shoppingNum");
            return (Criteria) this;
        }

        public Criteria andShoppingNumNotBetween(Integer value1, Integer value2) {
            addCriterion("shopping_num not between", value1, value2, "shoppingNum");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalIsNull() {
            addCriterion("shopping_total is null");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalIsNotNull() {
            addCriterion("shopping_total is not null");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalEqualTo(Long value) {
            addCriterion("shopping_total =", value, "shoppingTotal");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalNotEqualTo(Long value) {
            addCriterion("shopping_total <>", value, "shoppingTotal");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalGreaterThan(Long value) {
            addCriterion("shopping_total >", value, "shoppingTotal");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalGreaterThanOrEqualTo(Long value) {
            addCriterion("shopping_total >=", value, "shoppingTotal");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalLessThan(Long value) {
            addCriterion("shopping_total <", value, "shoppingTotal");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalLessThanOrEqualTo(Long value) {
            addCriterion("shopping_total <=", value, "shoppingTotal");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalIn(List<Long> values) {
            addCriterion("shopping_total in", values, "shoppingTotal");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalNotIn(List<Long> values) {
            addCriterion("shopping_total not in", values, "shoppingTotal");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalBetween(Long value1, Long value2) {
            addCriterion("shopping_total between", value1, value2, "shoppingTotal");
            return (Criteria) this;
        }

        public Criteria andShoppingTotalNotBetween(Long value1, Long value2) {
            addCriterion("shopping_total not between", value1, value2, "shoppingTotal");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2IsNull() {
            addCriterion("shopping_other2 is null");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2IsNotNull() {
            addCriterion("shopping_other2 is not null");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2EqualTo(String value) {
            addCriterion("shopping_other2 =", value, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2NotEqualTo(String value) {
            addCriterion("shopping_other2 <>", value, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2GreaterThan(String value) {
            addCriterion("shopping_other2 >", value, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2GreaterThanOrEqualTo(String value) {
            addCriterion("shopping_other2 >=", value, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2LessThan(String value) {
            addCriterion("shopping_other2 <", value, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2LessThanOrEqualTo(String value) {
            addCriterion("shopping_other2 <=", value, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2Like(String value) {
            addCriterion("shopping_other2 like", value, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2NotLike(String value) {
            addCriterion("shopping_other2 not like", value, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2In(List<String> values) {
            addCriterion("shopping_other2 in", values, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2NotIn(List<String> values) {
            addCriterion("shopping_other2 not in", values, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2Between(String value1, String value2) {
            addCriterion("shopping_other2 between", value1, value2, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther2NotBetween(String value1, String value2) {
            addCriterion("shopping_other2 not between", value1, value2, "shoppingOther2");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3IsNull() {
            addCriterion("shopping_other3 is null");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3IsNotNull() {
            addCriterion("shopping_other3 is not null");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3EqualTo(String value) {
            addCriterion("shopping_other3 =", value, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3NotEqualTo(String value) {
            addCriterion("shopping_other3 <>", value, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3GreaterThan(String value) {
            addCriterion("shopping_other3 >", value, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3GreaterThanOrEqualTo(String value) {
            addCriterion("shopping_other3 >=", value, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3LessThan(String value) {
            addCriterion("shopping_other3 <", value, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3LessThanOrEqualTo(String value) {
            addCriterion("shopping_other3 <=", value, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3Like(String value) {
            addCriterion("shopping_other3 like", value, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3NotLike(String value) {
            addCriterion("shopping_other3 not like", value, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3In(List<String> values) {
            addCriterion("shopping_other3 in", values, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3NotIn(List<String> values) {
            addCriterion("shopping_other3 not in", values, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3Between(String value1, String value2) {
            addCriterion("shopping_other3 between", value1, value2, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther3NotBetween(String value1, String value2) {
            addCriterion("shopping_other3 not between", value1, value2, "shoppingOther3");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4IsNull() {
            addCriterion("shopping_other4 is null");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4IsNotNull() {
            addCriterion("shopping_other4 is not null");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4EqualTo(Integer value) {
            addCriterion("shopping_other4 =", value, "shoppingOther4");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4NotEqualTo(Integer value) {
            addCriterion("shopping_other4 <>", value, "shoppingOther4");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4GreaterThan(Integer value) {
            addCriterion("shopping_other4 >", value, "shoppingOther4");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4GreaterThanOrEqualTo(Integer value) {
            addCriterion("shopping_other4 >=", value, "shoppingOther4");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4LessThan(Integer value) {
            addCriterion("shopping_other4 <", value, "shoppingOther4");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4LessThanOrEqualTo(Integer value) {
            addCriterion("shopping_other4 <=", value, "shoppingOther4");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4In(List<Integer> values) {
            addCriterion("shopping_other4 in", values, "shoppingOther4");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4NotIn(List<Integer> values) {
            addCriterion("shopping_other4 not in", values, "shoppingOther4");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4Between(Integer value1, Integer value2) {
            addCriterion("shopping_other4 between", value1, value2, "shoppingOther4");
            return (Criteria) this;
        }

        public Criteria andShoppingOther4NotBetween(Integer value1, Integer value2) {
            addCriterion("shopping_other4 not between", value1, value2, "shoppingOther4");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5IsNull() {
            addCriterion("shopping_other5 is null");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5IsNotNull() {
            addCriterion("shopping_other5 is not null");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5EqualTo(Integer value) {
            addCriterion("shopping_other5 =", value, "shoppingOther5");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5NotEqualTo(Integer value) {
            addCriterion("shopping_other5 <>", value, "shoppingOther5");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5GreaterThan(Integer value) {
            addCriterion("shopping_other5 >", value, "shoppingOther5");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5GreaterThanOrEqualTo(Integer value) {
            addCriterion("shopping_other5 >=", value, "shoppingOther5");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5LessThan(Integer value) {
            addCriterion("shopping_other5 <", value, "shoppingOther5");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5LessThanOrEqualTo(Integer value) {
            addCriterion("shopping_other5 <=", value, "shoppingOther5");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5In(List<Integer> values) {
            addCriterion("shopping_other5 in", values, "shoppingOther5");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5NotIn(List<Integer> values) {
            addCriterion("shopping_other5 not in", values, "shoppingOther5");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5Between(Integer value1, Integer value2) {
            addCriterion("shopping_other5 between", value1, value2, "shoppingOther5");
            return (Criteria) this;
        }

        public Criteria andShoppingOther5NotBetween(Integer value1, Integer value2) {
            addCriterion("shopping_other5 not between", value1, value2, "shoppingOther5");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}